Skip to content

[TOOLS] Add hip support for link.py#9084

Merged
antiagainst merged 1 commit into
triton-lang:mainfrom
lijinpei-amd:amd-link-py
Dec 23, 2025
Merged

[TOOLS] Add hip support for link.py#9084
antiagainst merged 1 commit into
triton-lang:mainfrom
lijinpei-amd:amd-link-py

Conversation

@lijinpei-amd
Copy link
Copy Markdown
Contributor

@lijinpei-amd lijinpei-amd commented Dec 23, 2025

  • Use the same link cpp scr except hipStrean/CUstream etc.
  • Add a link.h prelude for AMD/Nvidia to adapt for the difference.
  • Enable test_aot.py for AMD.
  • Also rename AMD's compile.cpp to compile.c.

Fixes https://github.com/ROCm/triton-internal/issues/953

* Use the same link cpp scr except hipStrean/CUstream etc.
* Add a link.h prelude for AMD/Nvidia to adapt for the difference.
* Enable test_aot.py for AMD.
* Also rename AMD's compile.cpp to compile.c.
@antiagainst antiagainst merged commit a0e769f into triton-lang:main Dec 23, 2025
9 checks passed
agron911 added a commit to agron911/triton that referenced this pull request Apr 24, 2026
…084)' (facebookexperimental#1331)

Summary:
Pull Request resolved: facebookexperimental#1331

This is a cherry-pick of an upstream PR: triton-lang/triton#9084

Upstream commit message:
```
> [TOOLS] Add hip support for link.py (#9084)

> * Use the same link cpp scr except hipStrean/CUstream etc.
> * Add a link.h prelude for AMD/Nvidia to adapt for the difference.
> * Enable test_aot.py for AMD.
> * Also rename AMD's compile.cpp to compile.c.
```

***Do not remove the following line from this commit***
Reactor Cherry-pick Revision: a0e769f

Diff Comparison: https://www.internalfb.com/intern/paste/P2283337631/
 ---

This diff was generated by running:
```
buck run fbcode//triton/tools/reactor:reactor -- cherrypick --num-commits 1 --no-submit
```

Reviewed By: sfzhu93

Differential Revision: D101982807
agron911 added a commit to agron911/triton that referenced this pull request Apr 24, 2026
…084)' (facebookexperimental#1331)

Summary:
Pull Request resolved: facebookexperimental#1331

This is a cherry-pick of an upstream PR: triton-lang/triton#9084

Upstream commit message:
```
> [TOOLS] Add hip support for link.py (#9084)

> * Use the same link cpp scr except hipStrean/CUstream etc.
> * Add a link.h prelude for AMD/Nvidia to adapt for the difference.
> * Enable test_aot.py for AMD.
> * Also rename AMD's compile.cpp to compile.c.
```

***Do not remove the following line from this commit***
Reactor Cherry-pick Revision: a0e769f

Diff Comparison: https://www.internalfb.com/intern/paste/P2283337631/
 ---

This diff was generated by running:
```
buck run fbcode//triton/tools/reactor:reactor -- cherrypick --num-commits 1 --no-submit
```

Reviewed By: sfzhu93

Differential Revision: D101982807
meta-codesync Bot pushed a commit to facebookexperimental/triton that referenced this pull request Apr 24, 2026
…084)' (#1331)

Summary:
Pull Request resolved: #1331

This is a cherry-pick of an upstream PR: triton-lang/triton#9084

Upstream commit message:
```
> [TOOLS] Add hip support for link.py (#9084)

> * Use the same link cpp scr except hipStrean/CUstream etc.
> * Add a link.h prelude for AMD/Nvidia to adapt for the difference.
> * Enable test_aot.py for AMD.
> * Also rename AMD's compile.cpp to compile.c.
```

***Do not remove the following line from this commit***
Reactor Cherry-pick Revision: a0e769f

Diff Comparison: https://www.internalfb.com/intern/paste/P2283337631/
 ---

This diff was generated by running:
```
buck run fbcode//triton/tools/reactor:reactor -- cherrypick --num-commits 1 --no-submit
```

Reviewed By: sfzhu93

Differential Revision: D101982807

fbshipit-source-id: f4c876e0d9f655bb16b1c3e288197348bf78349b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants